package com.dkd.findmyfriends;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;

public class MenuActivity extends Activity implements OnClickListener {

	//private static final String TAG = MenuActivity.class.getSimpleName();
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_menu);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_menu, menu);
        return true;
    }

	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.playGameBtn:
//			Database.insertScore("test4.2", Long.valueOf(-1), 1, "3x6");
			startActivity(new Intent(this, PlayGameActivity.class));
			break;
		case R.id.selectPhotosBtn:
			startActivity(new Intent(this, AddPhotosActivity.class));
			break;
		case R.id.highScoresBtn:
			startActivity(new Intent(this, HighScoresActivity.class));
			break;
		case R.id.settingsBtn:
			startActivity(new Intent(this, SettingsActivity.class));
			break;		
		}		
	}
	
}
